package com.smart.community.region.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smart.community.commons.base.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 分区楼栋关联实体类
 *
 * @author Wu.Liang
 * @since 2025-01-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sc_zone_building")
public class ZoneBuilding extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 分区ID
     */
    @TableField("zone_id")
    private Long zoneId;

    /**
     * 楼栋ID
     */
    @TableField("building_id")
    private Long buildingId;

    /**
     * 社区ID
     */
    @TableField("community_id")
    private Long communityId;

    /**
     * 物业公司ID
     */
    @TableField("property_company_id")
    private Long propertyCompanyId;

    /**
     * 楼栋在分区中的X坐标
     */
    @TableField("building_position_x")
    private BigDecimal buildingPositionX;

    /**
     * 楼栋在分区中的Y坐标
     */
    @TableField("building_position_y")
    private BigDecimal buildingPositionY;

    /**
     * 是否主要楼栋：1-是，0-否
     */
    @TableField("is_primary")
    private Integer isPrimary;

    /**
     * 状态：1-启用，0-禁用
     * 使用SystemStatusEnum.ENABLED.getCode()和SystemStatusEnum.DISABLED.getCode()
     */
    @TableField("status")
    private Integer status;
}
